<?php

define('DEBUG_LEVEL', 2);

if (! defined('APP_DIR')) {
  define('APP_DIR', realpath(dirname(__file__) . '/app'));
  require_once(APP_DIR . '/../simplify/simplify.php');
}

require_once(SY_DIR . '/lib/Amfphp/ClassLoader.php');

$conf = new Amfphp_Core_Config();
$conf->serviceFolderPaths = array(APP_DIR . '/services/');

$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway($conf);
$gateway->service();
$gateway->output();

?>